package neuron.geometry;

import neuron.Neuron;

public class Spatial {

	/**
	 * Compute 3D bounding box of neuron n.
	 * @param n
	 * @return
	 */
	public static Box32d boundingBox(Neuron n)
	{
		CoordSet all = n.getAllCoordinates();
		
		return new Box32d(all.minX(), all.minY(), all.minZ(), 
						  all.maxX(), all.maxY(), all.maxZ());
	}
}
